<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

use App\Models\Admin\Banner;

class BannerController extends Controller
{
    public function getList(Request $request)
    {
        $pageSize = $request['pageSize'];

        $bannerModel = new Banner;
        $data = $bannerModel->getList($pageSize);

        return $data;
    }

    public function handle(Request $request)
    {
        $bannerModel = new Banner;
        $result = $bannerModel->handle($request);

        return $result;
    }

    public function delete(Request $request)
    {
        $bannerModel = new Banner;
        $result = $bannerModel->deleteBanner($request);

        return $result;
    }
}
